package com.lion.seaman.orm.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;

@NoRepositoryBean
public interface BaseDAO<T,ID extends Serializable>  extends PagingAndSortingRepository<T, ID>, JpaSpecificationExecutor<T>,JpaRepository<T, ID>  {
    T getById(ID id);
}